Skip to content

Remove deprecated function from tests#6536

Merged
gaearon merged 1 commit intofacebook:masterfrom
apaatsio:remove-deprecated-function
Oct 24, 2016
Merged

Remove deprecated function from tests#6536
gaearon merged 1 commit intofacebook:masterfrom
apaatsio:remove-deprecated-function

Conversation

@apaatsio
Copy link
Copy Markdown
Contributor

This has been deprecated since 2013 so it's about time to remove it.

@jimfb
Copy link
Copy Markdown
Contributor

jimfb commented Apr 18, 2016

Looks like these are super easy to find+fix, so it might not be terrible to just break this. On the other hand, we haven't warned for a release and there is no harm in leaving the code here. Honestly, I don't care what we do here; @zpao do you have any thoughts/preferences?

@zpao
Copy link
Copy Markdown
Member

zpao commented Apr 18, 2016

Yea, we never actually respected the @deprecated in JSDocs, nice find :). We should warn for 15 but it would be safe to remove like this in 16.

So this is actually an interesting case and will need a slight bit more thought on the best way to do this since we need a different change to made for the 15-stable branch. This is totally fine to go into master as is so I'm going to accept but let's hold off on merging until we document the exact process (would hate for us to lose track of this)

This has been deprecated since 2013 so it's about time to remove it.
@apaatsio apaatsio force-pushed the remove-deprecated-function branch from 137eb2b to bb7bbb0 Compare June 14, 2016 13:51
@ghost
Copy link
Copy Markdown

ghost commented Jun 14, 2016

@apaatsio updated the pull request.

ghost pushed a commit to facebook/relay that referenced this pull request Jun 14, 2016
Summary:
`toBeDOMComponentWithTag` is deprecated and has been replaced by `toBeComponentOfType`. See https://github.com/facebook/react/blob/master/src/test/reactComponentExpect.js#L170-178

Related to facebook/react#6536
Closes #1212

Differential Revision: D3430727

fbshipit-source-id: dc6e50514bc209ef887dc881d373ad60a56607b8
@gaearon
Copy link
Copy Markdown
Collaborator

gaearon commented Jun 26, 2016

Ping @zpao—what’s the solution here?

@ghost ghost added the CLA Signed label Jul 12, 2016
@zpao
Copy link
Copy Markdown
Member

zpao commented Jul 26, 2016

Do we expose reactComponentExpect publicly? I don't think we do, in which case we can probably actually just land this whenever. Otherwise we might want to do a separate PR to land first which adds the warning, then we can take that over to stable.

@sophiebits
Copy link
Copy Markdown
Collaborator

We don't.

@gaearon gaearon added this to the 15-next milestone Oct 24, 2016
@gaearon gaearon merged commit 954a70e into facebook:master Oct 24, 2016
@gaearon
Copy link
Copy Markdown
Collaborator

gaearon commented Oct 24, 2016

Getting it in as it's not exposed.

@gaearon gaearon removed this from the 15-next milestone Jan 6, 2017
acusti pushed a commit to brandcast/react that referenced this pull request Mar 15, 2017
This has been deprecated since 2013 so it's about time to remove it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants